﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Vitruvian.Serialization;
using Vitruvian.Logging;
using Vitruvian.Testing;

namespace SpotItComponents
{
    public class PlayingDeck : Component
    {
        #region Public Methods
        public string Label { get; set; }
        public List<PlayingCard> Cards { get; set; }

        [DontSerialize]
        public Guid DeckId { get; set; }
        #endregion

        #region Constructors
        public PlayingDeck()
        {
            Cards = new List<PlayingCard>();
        }

        public PlayingDeck(Deck deck)
        {
            if (deck != null)
            {
                DeckId = deck.Id;
                Label = deck.Label;
                Cards = new List<PlayingCard>();
                foreach (Card card in deck.Cards)
                    Cards.Add(new PlayingCard(card));
            }
        }
        #endregion

    }
}
